fixed issues with anonymous users