fix for gallery avatars