typo with realloc