restart variable was inconsitent and wrong