Fixed all the pointer errors.