fixes #684