Fixing door opened bug