fixed params bug in forms