fix buffering in str_list