small fixes in spm ex005