Fixed bug

Fixed pedometer bug that would crash if user paused and then quit.