Update core.cpp

Fixed typo