Fixed openDoor code.