fix for wrong condition in bulk_string_from_flex