patched bug when no user is logged in