Fix check in transform to ISO function