Fixed a bug related to updating of datepicker next/prev month