fix up brick_index