Fixed the pedometer's bug.