Fixed bugs that made the application crash on all other browsers except chrome and firefox.