Fix for mac