Fix to MessageDialog