fix restart hook