- Fix bugs in core.