fixes #686