fixed avatar bug