fixes issue #46