fix output for 3D correlation functions