argh another fix for avatar upload