fixes #1826