fix if bricks