Fixed a bug on changing font style

- Fixed bug in fabric.js