fix 2 memleaches