Bug fix in addDays