Fix backwardsn > < in checking for the observation end time