fix error loading bricks