handle PID changes properly when editing