Fixed bug where state constantly switches