When the producers made Star Trek: The Next Generation: Q Who? (1989) earlier in the season, the episode went way over budget. Meaning the money ran out at the end of the season. So in order to cut costs, they had to do a clip show. As such, Shades of Gray is often considered the worst episode of Star Trek: The Next Generation (1987), and even the producers admitted they were embarrassed by it.