fixes #969