fix crash on disappeared target