Fix line orientation