REF: fixed bug on debug mode again
REF: fixed bug on debug mode again

Former-commit-id: 7cfd77861cce27d3abcc4991f8fb8d802f912c93
Former-commit-id: dada13c2fb54b33045221fb3d910818eb3d43183
3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox,3324fr/spinalcordtoolbox