fixed syntax problems for switch link