prevent crashes on ie8