DAYTONA BEACH, Fla. -- The Florida Department of Agriculture confirms it inspected a roller coaster at the Daytona Beach Boardwalk Thursday before several cars derailed, sending nine people to the hospital.  

Three cars on the Sand Blaster Rollercoaster were involved in the derailment Thursday night. 

"Just yesterday, inspectors conducted a thorough inspection of the ride, and it was found in compliance with state law," the agency said in a statement Friday.

The report was released Friday, and it documents that on June 14, the ride passed inspection, and any deficiencies were reportedly corrected. A document released from May 17, 2018 shows that the ride failed inspection less than a month ago.

The May 2018 document notes a number of deficiencies, including restraint latches that were damaged or not functioning, excessive corrosion to the structural integrity, damaged "carriers/tubs," cracked bracing, and a cracked track. 

Additionally, a document from May 31, 2017 shows the ride failed inspection again, demonstrating damaged handrails and fencing, damaged nuts and bolts, improper, damaged and cracked bracing, and excessive corrosion. 

An agency spokesperson said it had launched an investigation into what caused the derailment, and would hold people accountable.

Two people in the front car fell 34 feet to the ground and were rushed to the hospital as trauma alerts.

Nine people total were hospitalized from the incident at Halifax Health Medical Center in Daytona Beach, said a hospital official. 

In fact, two of those people were dangling from the front car when firefighters arrived. A total of 10 people were on the roller coaster when it suddenly went off the track. 

Officials say the front car derailed, causing the car to hang off the tracks. The second car came off alignment on the track. The third car stayed in place. 

The Sand Blaster Rollercoaster opened in 2013. 

Lindsay and Hannah Whitcher has watched crews work on the Sandblaster roller coaster the past few days while they were visiting from Georgia.

"The next day that we came out we saw them painting it, then all of sudden we saw people ride it just like that," said Lindsay Whitcher, a visitor.

The Sand Blaster roller coaster has been giving thrills since 2013 but now safety inspectors are working to figure out why the ride derailed and injured riders.

"That just looks kind of janky," said Hannah Whitcher.

Daytona Beach Fire Department firefighters had to use their tower truck and ladder to get the riders down safely.

"It was very chaotic as you can imagine. There was a lot of people in the area. The riders were very frightened. And the firefighters were doing a great job to make sure that everyone stayed calm so the rescue could go off successfully," said Sasha Staton, the public information officer with the Daytona Beach Fire Department.

Spectrum News is asking the city if it has had any issues in the past with the roller coaster. 

There was severe weather in the area Thursday night, but firefighters are still determining what caused this scary situation. 

Reporters Jerry Hume and Jeff Allen contributed to this report.