fix new line on end of file