fixed rootcore compilation problem