fixed the error dialog