Fix chart download in Firefox