Fix when uploading avatars