fixed issue with scatter plot working with >2 var