fix mac issue