trying to fix coredump