fixed registers not being cleared on stop