fixed transformation for safari