Temporary fix for subsearch realloc