Fixed more papercuts with the switches' and scales' behaviours.