Fix list_file bug and mod strbuff function