Fixed inheritance check for hooked event argument