If you tuned into the BBC or BBC America last Sunday to watch the latest episode of Doctor Who, titled "Kerblam!," then you know that the episode featured a fun adventure set in the far reaches of space and time where the Doctor and her companions started working undercover for Kerblam! -- the universe's biggest, most popular and most efficient online store -- to thwart a dastardly plot.

It didn't take much for those watching to figure out that Kerblam! was a placeholder for real-life online retailer, Amazon. Therefore, it's perhaps a quite unfortunate twist of fate that Amazon has one again just found itself connected to the popular British sci-fi series.

RELATED: Doctor Who New Year's Day Special Confirmed

On Wednesday night, it was noticed that, if fans tried to watch "Kerblam!" on Amazon Video, they were instead treated to this Sunday's upcoming episode, titled "The Witchfinders." The issue lasted for quite a few hours before it was eventually fixed. Still, many people got to watch this Sunday's episode early, which means that, if you wish to avoid spoilers, you best stay away from the Internet for a few days.

After the issue was reported by io9, BBC issued a statement to the outlet: "We’re aware that an upcoming episode of Doctor Who was made available to Amazon Prime users in the US in error. We are investigating how this happened and have taken the steps to remove it. BBC Studios would like to apologise if anyone’s enjoyment of the series has been spoiled by this mishap."

Doctor Who's latest episode, "The Witchfinders," will air as scheduled this Sunday. The episode will see the Doctor and her companions time traveling back to England in the 17th century, and will guest star Alan Cummin as King James I.

Here is the official synopsis of "The Witchfinders:"

"The Doctor, Ryan, Graham and Yaz arrive in 17th century Lancashire and become embroiled in a witch trial, run by the local landowner. As fear stalks the land, the arrival of King James I only serves to intensify the witch hunt. But is there something even more dangerous at work? Can the Doctor and friends keep the people of Bilehurst Cragg safe from all the forces that are massing in the land?"

RELATED: Doctor Who: The Importance of Fan Reactions To Jodie Whittaker's Doctor

Doctor Who airs Sundays at 8 pm EST on BBC America in the United States and stars Jodie Whittaker as the latest iteration of the titular Time Lord. Whittaker is joined by co-stars Bradley Walsh, Tosin Cole, Mandip Gill in a season spearheaded by new series showrunner, Chris Chibnall.

(via io9)