fix for mac complie