Friend, don't edit things you don't understand and when you do, write it in a changelog file so that you know what you have changed, keep things organized. That way, you won't end up in situations like this.
BTW, look for something that makes the door transform from closed door to open door, that seems to be the problem.