bug fixing for the plotting scripts magicplott/scateterplot