fixes issue #248