fix generate location on osx