fixes #980