fixes #674