fixes #962