fix shutdown fail