Fixing references in Mac