Fix wrong PID being recorded at startup