Taxonomy widget using wrong variables

Relate to issue #2493