Fixed AI::selectTarget not return a value