fixes #945