fix a bug for newly registered user