fixes #1705