fixed the worng displaying of error msg box
Merge pull request #177 from LI-HE/master

fixed the worng displaying of error msg box