fixes #1891