I'm sorry this happened, videogame doors are notoriously hard to make happen, (google videogame doors and scroll a bit) I did my best but the result has some extreme edge cases, which is what you've encountered. At this point, four years after making the game, all I can do is apologize and try to do a better job of doors (or avoid them altogether) in my future games.
Thank you for understanding.