fix main stript