fix CommonJS code, rebuild