FIX: Faulty logic when getting eligible resources
Merge pull request #1438 from acasajus/fix-resources

FIX: Faulty logic when getting eligible resources