Repaired PID writing