register index fix