fixed some issues

typos and garbage collecting