Fixed an issue in the add method handling negative values.