Correct min & max month when applying a new minDate and maxDate