More bug fixes should be completly working now.
General bug fixes. Fixed bug of NULLing memory that wasn't ours.