fix coredump.