unlock bugfix