fixed bug with update form