fixes #1729