After years of personal problems, Leah Messer was just hit with a devastating blow.
The Teen Mom 2 star, 23, lost custody of her 5-year-old twins, Ali and Aleeah, in court last week, In Touch Weekly reports.
The twins' father, Messer's ex-husband Corey Simms, "was awarded primary custody, effective immediately" after an October 13 court date, a family insider reveals to the magazine.
Though she was accustomed to having her eldest daughters for most of the school week, "Leah only gets the girls on the weekends now," the insider continues.
So what prompted the judge to make such a drastic decision?
According to sources, the troubled MTV star wasn't making any parenting progress following her June release from rehab. (She entered treatment for what she claims is an anxiety and depression issue, but what sources tell RadarOnline.com was prescription painkiller abuse.)
"Leah's really been screwing up…so Corey took her back to court," the source explains. "The judge looked at the girls' school records, which show that they've been late for school, and made the change in custody."
Messer, who has been at odds with Simms and his wife Miranda for years, is devastated.
"Leah's been crying," the insider says. "She never thought this would happen."
Meanwhile, Messer's ex-husband #2, Jeremy Calvert, is also concerned about their 2-year-old daughter Adalynn, the family insider reveals to In Touch— and could look into changing their own separate custody arrangement.
"Everyone is worried about Addie. She recently wandered out of the house while Leah was distracted," the source claims. "Thankfully, a police officer found Addie and brought her back home."
Sadly, Messer's devastating loss isn't a surprise to Teen Mom 2 fans. The young mother of three was caught on camera this season exhibiting bad mom behavior, including feeding the kids dinner at midnight, neglecting them in the car, and cursing in front of them.
Though Messer recently claimed on the Teen Mom 2 reunion special that she's never been better, RadarOnline.com can reveal that insiders were concerned with how fast she moved on with boyfriend T.R. Dues, a 32-year-old personal trainer with two kids of his own, two months before her divorce from Calvert was finalized.
Will Leah straighten up her act? Sound off in the comments.
Watch: Leah Messer Hints Ex Corey Simms Cheats On Wife Miranda