fix bug with spurs index