fixes #1788