fix switch user bug