Correlation function of modular Hamiltonians