Fix the if condition to use the file of cases