Bug fix - processing variants twice on page load.