fixed a time range issue (and made the selected range more precise)