fix issue 10113 - Can't use an enum : string in a switch statement