Saved charts have legend overlaying plot

I’ve created a shiny app, with a plot initially in ggplot2, then ggplotly. It displays well (see screenshot image attached). But the Plotly download button saves the second file, which is useless. It doesn’t seem to change if a try to change legend position.

Any thoughts, before I give up and stop using Plotly for R altogether.