fix admin.c private methods