Fix subtraction overflow