fixed scatterplot error