Fixed invalid pointer issue for hold events.