fix avatar loading