Removed some unnecessary pointers that were causing segmentation faults under the new ubuntu