Fixed magellan script