Fixed a pointer issue