fix a core