Fix for realloc error...?