bugfix: fixed a coredumped