fixed error on edit page