fixed issue #267