fix GenerateCase.py issue