fixing some issues in admin package