Bug/spm/realign

fixes output listing in spm