fixing spm upgrade