Fixed an issue with problem generation.