Fix the statusbar message bug.

Pop all the messages when appropriate.