fixed issue with column not looping to end