Fix: error with index