Fixed a bug at the first login