fix bugs in admin controllers