fixes coloring of plot