fix in hook