Fixbug: shutdown fail