Handle bad input