Correct an input