fixes app fucking itself when reached from a browser.