fix bug for commissions