two more memory bugs