fix for wrong delete condition in to_bulk_string