fixed error in edit.php