fix core.c