Fix to index error on open project

Fix to index error on open project