fix issue #34 after regression in commit 31a49f456af2c39937a9d363d36237f691c89aa9.