fixed bug in freeze_mac.py