quickfix: bad indexing