fix #51

https://github.com/ecomfe/zrender/issues/51