Fix indentation, use switch (#4355)