fixed issue #20

fixed issue #20