fix case switch syntax errors