Fixed bug in admin