Fix display toggling on Chrome