fixed issue #256