fix for the switch web view issue