fixes #869