fixed division over substraction error