Change type spec from node() to pid() everywhere it occurs.