fixed issue #259