I think this should be pm.set() - query implies it is not linked (and function doesn't look like it does)