Fix script exception.