fixed for g1/g2 levels of scatterplots