Fix errors in hook move