Change bad pointer reference
Make @bethc's reccomended changes to pointers