tiny fixes of memory