Fixes for SPM ApplyTransform