Fixed attachements

Fixed an error where elements other than video attachements were
removed.