Fixed Run/Pause Bug

Found and fixed the source of the Run/Pause Bug.