Corrected a pointer error