fix to issue #146