fix txt fail
fix txt leak