fix indexing points