Fix bug in quotas update