Fix bug 1565 to reset the project quotas count