samples index fix