fix some mem leaks