fix error on osx