fixed problem with switch reg