realloc fixed