Hooks: Fix script