fix dead lock
add destory type test