fix error dialog