Fix for #664, crashed due to ig.Attachements being 0