Fixed bug with index button