Try to fix the problem about the lock