fixed double plotting data