fixed bug with door unlocking