fix index filepath