Fixed line ending problms