Fixed bug with subtraction