Fixing SPM settings