* Fixed a lot of reference leaks