Fixed mac compatability issue on line 493