fix issue where visualizations were being created twice