Fixed Versioned hook regression

Introduced by 5238e9cf48251f77f3fda095724990da3bee6803