fixed Exception on first login

Signed-off-by: Hugo ThePooN Denizart <thepoon@cartooncraft.fr>