fix bugs in admin