The gender of the villain in Iron Man 3 was changed from female to male after Marvel reportedly expressed concerns over toy sales, according to director Shane Black in a recent interview with Uproxx. Black says the character of Aldrich Killian — a role that eventually went to Guy Pearce — was originally written for a woman.

“There was an early draft of Iron Man 3 where we had an inkling of a problem,” he said. “Which is that we had a female character who was the villain in the draft. We had finished the script and we were given a no-holds-barred memo saying that cannot stand and we’ve changed our minds because, after consulting, we’ve decided that toy won’t sell as well if it’s a female.”

Read More: Marvel CEO Says in Leaked Email That Female Superhero Movies Have Been a ‘Disaster’

Black went on to say that the decision had nothing to do with current Marvel Studios president Kevin Feige. “Now, that’s not Feige,” he said. “In the earlier draft, the woman was essentially Killian – and they didn’t want a female Killian, they wanted a male Killian. I liked the idea, like Remington Steele, you think it’s the man but at the end, the woman has been running the whole show. They just said, ‘no way.'”

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Megan McCluskey at megan.mccluskey@time.com.