starting index fix