Fix error with expanding tag groups