Fixed a bug when the user is just logged