[bug 2838780] fixed bug where category is lost when tag selected