fix upload avatars on the server