Fix synchronizing view index for newly opened file

Fix synchronizing view index for newly opened file