generator bug