Fix an issue that it left garbage in output