fix for undefined case number