fixes #1698