prevent errors when bad params are submitted

same change for 1-2