Fixed that avatar cannot saved if subdomain used