fix avatar when regist