fixed https://github.com/ecomfe/echarts/issues/638