fix bug on non avatar declared