fix call to create_string_buffer, use variable