fix some logic bugs in creation of Pnd objects from discovered apps list