Fix bug: when the first launch of application, the avatar does'nt defined and the application crashs.