fixed memory warning