set the correct TProcessID for SmartRef