bug in restart counter & interval overflow