fixes #1691