Fix bug index