fix issue #176

Closes #184