Fixed a bug involving $index and entries with the same date and time