fix switching local