Fixed Pointer Errors