Fixed bug on switch contextitemselected