Fixing a bug in adding job attachments