bug with osx script