Fix repeat values of month in loop