Fixed some typos in core.php