Fix formatting of switch statements