fix typo problem that was causing error on safari