fixes avatar upload