bug fix for non logged in user