fix ending line