fixes #784