fix compiler warning from missing default statement in switch