fix wrong indexing