Fix the getinfosapp function so that is finds all values in the tree