Fix script error dialog