fix a memory warning