Fix to avoid loop while loading the web page