fixed locking with the last dooor