Bug fix. Date selection.