Fixed some problem in _core.js