Fix rc script