fix resource selection