Fixing unlocking error