small fix to locking mechanism