fix to mac