BUG: fixed #1022
BUG: fixed #1022

Former-commit-id: d6bad36308189ede3c997c70724a24fe357ecb2a [formerly 740487a2f40468bd999d04911f231a2a82061d78]
Former-commit-id: 02e5ec12f0ae5f12bb72fda68f93215ddec687c1
Former-commit-id: 525a6de38fd2dc05b681b7836fe79af6c988f1db
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox