fixed small bug concerning startup_state in Switch init