Fixed warning about char subscript