fix issue #166