fixed small memory leak and unnessary debug output