fix for OS X