fixed issue with door swings demo code