fix variants adding logic

correctly handle multiple ps:gloss pairs