Uploaded avatars and Gravatar not working with subfolder installation

I’ve installed version 1.5.0.beta6 on my local computer, and reproduce 1x1 pixel blank white avatars.

But my issue remains in beta6, when I ulpoad an image, URL to it changes from /social/en/user_avatar/nsr24.com/halfstrik/120/18_1.png to /social/en/uploads/default/original/1X/400760f62da08b00a8f359f41ff6f0d5d391faad.jpeg until I do not refresh the page.

After refresh image URL reverts to /social/en/user_avatar/nsr24.com/halfstrik/120/18_1.png witch happen to be blank 1x1 pixel.

Interesting thing is if I try to load my uploaded avatar, it’s working, so the real problem is with the link, not with the image file.