fixes #1757