Bug/5014 fix attachment processing when signing