fixes #1738