reset goto when finished