fixed bug for logged out browsing