Fix division by zero error in quota.