Changed some pointers to (hopefully) avoid overwriting important data.