fix refresh_quotas