fixes #1814