Fixed core dump.