fixed math in orders controller