fix bug with repeating fields in tag search