Prevent negative numbers when doing subtraction