Sneha: Error fix for adding attachments