fix for mac os x