Fix: flipped condition in core/utils.js batch