ticket:2 fix bugs with avatar