fix https://github.com/ContinuumIO/bokeh/issues/729