fix issue where no next race exists on profile page
Change variable scope from instance to local for logs manager