switch-case-Bug behoben