Fixed all warning in core.