minor memory fix