fixed bug with ajax rendering when logged out