fixes #1832