fix bugs for chrome