Fix error when reconfigure riemann