Fixed AutoSwitch dependency