Fixed a sugar.js issue that breaks firefox