fix subscript type for dict's