Removes multiple connection bug with dict cursor and normal cursor
fixes index