Fix assignment operator in switch/case statement