Fixed crash on login with service