rm filename0 bug fix