Fix the using of ~ symbol which causes octave to crash