Fixed trailing line feed issue