fixes #1792