fix bug in nearby page when user not logged in