fixes pid reference.