On the calculation of correlation functions in nuclear matter