fix indexer

Make sure we really index at the interval. Also fix initialisation.