fixes #941