Fix error in core