fix for Mac OS