Fix a bug when calling addMonths() with a negative value.