another fix for error dialog, errors should be showing better now.