fix the bug that can not show the local avatar