fix the admin/edit bug