fix mac conversion