Fixing bug in profiling that caused incorrect number of cases to be load