Fixed a couple of bugs and prevented selecting disabled dates when they
fell between the start and end date.