minor: two changes that might fix ram leak