Identification and correction of artefact in the measurement of pulsed magnetic fields