The How I Met Your Mother actress was signed to star opposite Kerry Washington in the Anita Hill biopic on America's HBO network, but an injury has reportedly cost Smulders the role as lawyer Harriet Grant.

An insider tells, "She said her leg started hurting so she had it checked out and that she must've done something to it without realising sometime earlier."

Smulders' replacement has yet to be announced. The movie tells the story of Hill, an attorney who in 1991 sued U.S. Supreme Court nominee Clarence Thomas for sexual harassment.