I think the problem you are having is with the word "that." The easy way out is to give the sentence a subject so that the "that" is clearly the head of a pronoun clause. As, "All the problems that were in their heads were the worries...." Because the "that" treats it's plural antecedent collectively, it remains singular, not "those."