see issue #319