fix error with form params