Fix bugs in admin management