Fix a helper method used in refreshing attachments.