fix callback thread exception