fix realloc'ing the wrong size