Fixed several bugs with toggle buttons working together incorrectly.