Fix tail empty line removal