fixed bug in the doorlogic when handling buttons