fixed search bug if only 1 date is entered