fixed tag grouping for multiple subjects