workaround strange bug on Matlab 2014a

See issue #111.