fix start/end indexer (re #949)