fixes #1783