Fixing bug in admin