Update indexes for write operations + fix typos