fixed avatar errors