Fix issue with multiple extensions using same hoook