Fixed a bug in LockManagaer line 67