fix txt refresh bug