Preventing index resets