Fixed a bug in Job#create_or_update