new feature fixed #172 : an exception happened when click enter key in popup dialog sometimes