Fixing error on first login