Fix to switch statements in continuous.py