fix core.js