fixes #970