MOD: fix some exceptions caused crash