fix triple message submit and sign out issue