fixed error message on edit page