fixed bug on edit page