Fixed bug with dates filter. If not dates are selected the filter is not applied.