handle negative result of minus inplace