fix show_custom_vars with wildcards