Improving the calculation of magnetic coupling constants in MRPT methods