Issue with switch data