riemann plugin: Fix two minor bugs.