fixed issues with selected start date and end date