fix next-line problem