Corner case fix for subtraction method