fixes #979