small fix for a memory leek