Fix pid lookup