bug: indexing the start date as the end date