fix bugs in Door preventing EventEmitter from working