[fix] safari assertion error