fixed avatar loading bug