Fix chain restarting.