fixes #1741