FIX: Faulty logic when getting eligible resources