fix avatar not correctly display bug