Fixed so that constructor finder can handle roots that are undefined