Fix weird new Chrome bugs