Corrected bad pointers; no more warnings