Fix invalid initial values in pedometer