Correct lines order