fix avatar add broken sign in/out