fix mac issues