Start a fresh kernel (important)
DO NOT evaluate the cell that contain Evaluate["PlotLegends"]
This is the cause of your problems
Evaluate the cell with Needs[...]
Then run whatever export you need after running the graphics
yehuda