Fix bug causing wrong values to be saved to survana-store