hotfix for https://github.com/ericdrowell/KineticJS/issues/244