Fixed error in changing bricks.