Handle invalid params