fixes #1773