fixed crash after target becomes unreachable