fix bug while selecting previous/next month in datePicker