fix a rm *.log issue