Swapped the args in hook macro