A mechanical bridge connecting New Hampshire and Maine will be left in the upright position indefinitely after becoming stuck earlier this week.

Fixing the bridge would cost more than $1 million and take at least six weeks, the New Hampshire Department of Transportation announced on its Facebook page Wednesday. The Sarah Mildred Long Bridge, which connects Portsmouth, N.H. to Kittery, Maine, had already been scheduled for closure later this fall. A new bridge is on track to open next September.

“Engineers from NHDOT and MaineDOT, along with movable bridge experts, have determined the bridge is not safe for routine operation without complicated and extensive repairs,” the agency said in the Facebook post.