Fix invalid input in an ex.