fix the Switch Content function