fixed core dump.
fixed