fixed bug in admin