Fix hysteresis compute and fix floating locale (hu?)