fixed bug in scatterbar