Fixed bug in the initial placement of avatar