fix bug in admin panel