fixed a bug preventing the switcher to upload self avatar