fix for fix of issue #39

the `-1` was lost