Fixed cjs.on guard