Fixing addmonth function