fixes issue #49