fix spm example