bugfix lock delay