Fixed some wrongful memory reads/writes