fix warning for OSX