Fix bug in case name code in XMLCaseManagement