Forgot to add one more index and type conversion for caseID