Fixed typo in buildCore