fix possible empty array on c call hierarchy