fixed a bug about currentUser