fix hook return value