fixed missing avatar bug