minor bug fixes to riemann