Fixes the lock