Fixed errors in admin controller