master fix restart code