Correct positions of errors in conditions