fix ls bug which maybe caused by some unknown python bugs

fix ls bug which maybe caused by some unknown python bugs