Fixed errors in core endpoint.