Fix char subscript warning