see issue #904