Attempting to fix problem in casedata.py