fix region index thing