fix a bug in plotly that we missed weekday() call