Atomic pid fix