fixing visits date range filter