fix messagebox pop issue.