fix coredump