fixed some errors in admin