fixed 's not defined' and extended restart period