Fixed error handling for back end attachments