fix case of lines wrapping the wrong way around the world