fixed index_dict key errors