fix error if date has been filtered