Fixing error for Mac (sucks)