Correct spec.txt editing errors causing unexpected errors.