Fixed a failure during generation