SDL bugging cull pattern

For some reason, when i attach the line sdl to the cull it turns portions of the arrayed tiles 90 degrees the wrong direction. ive found out that removing the line sdl solves this but doesn’t allow the arrayed tiles to be at the desired normal. Is there something i can add to the scrip to fix this? Tiles should look like they do in the second image, i just need the arrayed tile to conform to the normal established by the line sdl.