fixed the way the categorie choice is constructed