small code improvement
fixed an incompatibility with YSI 4

this commit fixes issue #6