Corrected a bug where editing a job created a new one.