bug fix for missing operator in switch statement