fixes #949