fixes switching for X and Os