fix response for invalid params
fix response for invalid params