fix for mac os