Fix refresh index issue