fixes issue #39

fixes issue #39