add fix for mac