Switch arguments order in hook constructor function