Correct bug at login time