fix for end of loop bricks