merging this commit https://github.com/kangax/fabric.js/commit/81e8f9c2e29de95ff224079c186e3577602665f5