fixing issue with agent not finding app associations and prioritizing them properly