At the “Avengers: Infinity War” premiere on Monday night, Joss Whedon spoke to Variety about his unmade “Wonder Woman” script, which leaked online last year and was criticized as a sexist portrayal of the superhero.

“I don’t know which parts people didn’t like, but I went and reread the script after I heard there was a backlash. I think it’s great,” Whedon said on “Infinity War’s” purple carpet. “People say that it’s not woke enough, but they’re not looking at the whole picture.”

While he admitted he was not “the most woke individual who ever lived at that time 10 years ago,” when he wrote his original “Wonder Woman” script in 2006, he said, “I was in there swinging and the movie has integrity and the characters have integrity and I stand by it.”

Whedon went on to write and direct Marvel’s “The Avengers” in 2012 and its sequel, “Avengers: Age of Ultron” in 2015. His “Wonder Woman” story posted online in June 2017, right around the time Patty Jenkins’ successful adaptation starring Gal Gadot hit theaters, which the director said he loved.

“I had such a good time that I didn’t think about my script,” Whedon said of Jenkins’ film. “And I’m the person who should have hated it, because I really loved my script. I totally forgot I had written one, I just had a great time.”

Watch the full Joss Whedon interview here.