fixed some issues

typos and garbage collecting
(thanks @naranjamecanica)