Fix undefined root error.