fixed issue #242