Fix error for Mac OS