fixed mac related error
Merge pull request #1 from karshPandey/master

Mac error fix