fix logic in admin index