fix a bug in admin