fixes #1847