Fix for when there are more than 2 variant IDs