Fixed main to run without pass root to index update