Fix line ending panic