Casey Affleck has settled out of court with two women who filed sexual harassment suits against him, according to the Hollywood Reporter.

The women had alleged Affleck behaved innappropriately and created a hostile work environment during production of his documentary film, I’m Still Here, about Joaquin Phoenix.

Both women will get credit for their work on the film.