fixed an error in the edit page