Fixed bug relating to invalid door