Perhaps it's the number of args in the hook, though i doubt it. Still you only have 1 argument in your function.