Fixed issue with coredump.