fixes #687