fixes #1071