fix indexing before dot