Fixed broken error dialogs