fix bug with index