UI-2375: avatar upload: fix a bug