fixed issue #230

fixed issue #230