fix the spm pointer