fix: spm example

closes #774