Fixed an issue with the (temporary) problem generation code.