fixing reset / pause

based on https://github.com/shiffman/The-Nature-of-Code/pull/26/ hope this doesn't break anything.