fixed bug in indicating if selected time range has no data