Fixed unnecessary API call for retrieving attachments.