Lack of sleep can lead to errors in memory, finds a new study by researchers at Michigan State University (MSU) and the University of California (UC), Irvine.

The study, published online in the journal Psychological Science, found participants deprived of a night’s sleep were more likely to flub the details of a simulated burglary they were shown in a series of images.

Distorted memory can have serious consequences in areas such as criminal justice, where eyewitness misidentifications are thought to be the leading cause of wrongful convictions in the United States.

“We found memory distortion is greater after sleep deprivation,” says Kimberly Fenn, MSU associate professor of psychology and co-investigator on the study, in a release. “And people are getting less sleep each night than they ever have.”

The researchers conducted experiments at MSU and UC-Irvine to gauge the effect of insufficient sleep on memory. The results: Participants who were kept awake for 24 hours–and even those who got 5 or fewer hours of sleep–were more likely to mix up event details than participants who were well rested.

“People who repeatedly get low amounts of sleep every night could be more prone in the long run to develop these forms of memory distortion,” Fenn says. “It’s not just a full night of sleep deprivation that puts them at risk.”

Fenn’s co-investigators include Steven Frenda and Elizabeth Loftus from UC-Irvine.