fix a bug about the size of avatar