fixed Weird instant shutdown