Fixed memory leek