Fixing line ending