fix an error in core module