core.js bug fixed