A passenger train collided with a cargo train in Egypt on Wednesday, killing at least 12 people, including a child, in the latest deadly accident involving the country’s underfunded and mismanaged railways.

Another 39 people were injured in the crash, which took place in the Nile Delta north of Cairo, according to the state-run MENA news agency. The Health Ministry said the trains were both bound for the capital.

Egypt’s railway system has a poor safety record after decades of poor management and maintenance. Train accidents have killed hundreds of people over the years. In August, two passenger trains collided just outside Alexandria, killing 43 people.

President Abdel Fattah el-Sisi has spoken about modernizing the system, saying last year that 180 billion Egyptian pounds (about $10 billion) was needed for an overhaul.