#4084 fix bug with locking page,BUT yet rewrites big file