Fixed bug that avatar cannot be displayed