Can't edit driven number value, see graph editor for the driver setup
So. I finally solved the problem by following this video  (https://www.youtube.com/watch?v=f3JWNIkwBZ8). To fix it, in the Driver window add  Modifier Generator and change Y in it from -1 to 1.