grid index fix