Fixed error when utilizing a PID instead of spawning