fix issue #46