small memory fix