UPDATE: After Dylan O’Brien was hospitalized due to an injury on the set of the third Maze Runner film, writer James Dashner tweeted, “I just want to let everyone know that yes, Dylan was hurt, but that he’s going to be okay. Not life threatening in any way. Production is postponed but certainly not cancelled. All that matters now is that Dylan recovers. We love you, Dylan!!!”

EARLIER: Dylan O’Brien has been hospitalized after being seriously injured on the set of the third film in The Maze Runner series.

“Dylan O’Brien was injured yesterday while filming Maze Runner: The Death Cure in Vancouver, Canada,” 20th Century Fox said in a statement Friday. “He was immediately transferred to a local hospital for observation and treatment. Production on the film will be shut down while he recovers. Our thoughts go out to Dylan for a full and speedy recovery.”

O’Brien’s publicist, Jennifer Allen, was still awaiting details of his current condition but said early reports indicate he will recover fully.

WorkSafe BC, which investigates workplace accidents in British Columbia, said they just became aware of the situation and were looking into the reports that the actor had been struck by a car while shooting a scene. WorkSafe BC spokesperson Trish Knight Chernecki initially said it was unclear if the production had followed protocols to alert the investigative body to the incident, but now tells EW they have were contacted and are now in communication with the studio and producers.

Maze Runner: The Death Cure is set for release on Feb. 17, 2017.

O’Brien, who also stars in the MTV series Teen Wolf, plays Thomas in the Maze Runner series as the leader of a group of young survivors trying to navigate a wasteland after the planet was decimated by a solar flare. The first film, based on the best-selling novels by Dashner, came out in 2014, and the sequel, The Scorch Trials debuted last year.