Fixed Mac script