bug fix if not logged in