Fix init for Mac OS