Corrects substitution error