Fixed bug in job updating to replace both trigger and job