Fix for unlock script