fixes #682