Use pid from process_protocol, not id

id does not exist anymore