fix extra newline at end