fixes #783