Fixed an error in clearLine(): now it copy fields, not references.