Fix the bug that status msg sometime not sending out