if pname is in self.programs but not name, we will get a KeyError, this fixes that