fixes #690