Fix osx sample