Bug fix in split_var_len2