Fix for avatar upload