fixes #1662