Fixed a bug with dates where from.month > to.month