fixes #1846