Fix type error in plotly extension

thx travis