Fix pointer issue