Fixed Error on osx