Fixing module invoke for authentication hook